<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Sistema de Administraci&oacute;n de Condominios - Registro de Quejas</title>
<%@include file="include/header.jsp" %>
</head>
<body>
<%@include file="include/menu.jsp" %>

    		 <%
		
		Persona vo = (Persona)session.getAttribute("user");
		
		if (vo== null){
			RequestDispatcher rd = request.getRequestDispatcher("error.jsp");
			rd.forward(request, response);
			return;
		}
	  %>
<div class="container">
	<div class="hero-unit" align="center">
	    	<h2><strong>Registro de Quejas</strong></h2><br>
	    </div>

		  
	<%@page import="java.util.ArrayList,condominios.modelo.Persona"%>
	<%
		if (request.getAttribute("QUEJA_REGISTRAR") != null) {%>
	 
		<div class="row">		
  		<div class="col-md-4 col-md-offset-4">
			<div class="table-responsive">
			<table class="table table-bordered table-condensed">
  				
		
			
			<form method="post" action="QuejaRegistrarServlet">
			
				<tr class="success" ><th colspan="2">Por favor, ingrese los datos de la queja</th>
				</tr>
			
  				<tr>
  					<td>Id Persona:</td><td><input type="text" name="txtIdPersonaQ"/></td>
  				</tr>	
  					<tr>
  					<td>TipoQueja</td><td><select name="slTipoQuejaQ">
					<option value="1">Leve</option>
					<option value="2">Media</option>
					<option value="3">Grave</option>
				</select></td>
  				</tr>	
  				<tr>
  					<td>Motivo:</td><td><input type="text" name="txtMotivoQ"/></td>
  				</tr>
  				<tr>
  					<td>Estado</td><td><select name="slEstadoQ">
					<option value="0">Pendiente</option>
					<option value="1">Atendido</option>
				</select></td>
  				</tr>	
  				
			</table>
		
			<%
  				}
			
  				%>
  				
  				</div>
  			</div>
  		</div>	
  			
  			
  			<div class="row">		
  		<div class="col-md-12" align="center">
  		
		  	<button type="submit" class="btn btn-primary" name="aceptarRegistrarQueja"/>Aceptar</button>
			<button type="submit" class="btn btn-primary" name="cancelar4Queja"/>Cancelar</button>
			
			</div>
			
			</div>
		</form>		
			<div class="row">		
  		<div class="col-md-12" align="center">
  		
		    <footer>
        	<p>&copy; Java Tigers 2015</p>
        	</footer>
			
			</div>
			
			</div>
		</div>
		
	
</body>
</html>